#########################################################
## MOD Title:  Drop Down Smilie MOD Part 2a	
## MOD Author: radmanics <radmanics@dial.pipex.com> (David Race) http://members.lycos.co.uk/coolcodesportal/
## MOD Description:  Makes a select, drop down box, which contains a list of all the smilies
## 				 	 installed on you board. When you select a smiley, it appears next to the box.
##				 	 The smiliey code is then inserted to the like normal (by clicking on it)
## 
## MOD Version: 1.1.7
## 
## Installation Level:  Easy 
## Installation Time:   1 minute
## Files To Edit: 1
## 		 		  templates/subSilver/posting_body.tpl
##
######################################################### 
## Security Disclaimer: This MOD Cannot Be Posted To Or Added At Any Non-Official phpBB Sites 
#########################################################
## Notes: This MOD is inspired (and some of it is modified code) of the UBB
##	  version. It uses the smiliy's name in the select box though.
##	  Be careful not to alter ANY of the javascript unless you know what
##	  you are doing, and have a good reason for it, other wise the MOD wont
##	  work AT ALL!!!! so be careful :)
#########################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD 
#########################################################
# 
#---- [ OPEN ] -------- 
# 
templates/subSilver/posting_body.tpl 
# 
#----- [ FIND ] ---- 
#  ( approximately line 98 - 108)
function bbfontstyle
# 
#---- [ BEFORE, ADD ] ---- 
# 

//Drop Down Smilie MOD (c) radmanics 2002

//this is the function to change the image, taken from phpBB2.0.0 smilie admin pannel
function update_smiley(newimage)
{
	document.smiley_image.src = "{S_SMILEY_BASEDIR}/" + newimage;
}

//this is the function to add the smiley code, taken and modified from the UBB version.
function emoticon_drop(text) {
  emoticon_code = "" + text;
  current_msg = document.post.message.value;

  document.post.message.value = current_msg+emoticon_code;
  document.post.message.focus();
  return;
}

function emoticon_code_help(help) {
	document.post.emoticon_code_box.value = "{L_SMILEY_CODE}" + help;
}

//end MOD

# 
# --- [ FIND ] ---- 
# 
<!-- END switch_smilies_extra -->
# 
# --- [ FIND ] ---- 
# 
</tr>
</table>
#
#-----[ AFTER, ADD ] -----
#

		<table width="100%" border="0" cellspacing="0" cellpadding="1">
		<tr> 
		   <td class="row1" width="22%"><span class="gen"><b>{L_SMILIES}</b></span></td>
		   <td class="row2" width="78%"> <span class="gensmall"> 
		       <select name='smile_url' onchange="update_smiley(this.options[selectedIndex].value);" onmouseover="emoticon_code_help(this.options[selectedIndex].id)";>{S_SMILEY_BLOCK}</select><img name="smiley_image" src="{S_SMILEY_NULL}" border="0" onclick="emoticon_drop(document.post.smile_url.options[document.post.smile_url.selectedIndex].id)" onmouseover="emoticon_code_help(document.post.smile_url.options[document.post.smile_url.selectedIndex].id)">
		   	   <br><input type="text" name="emoticon_code_box" size="45" maxlength="100" style="width:450px; font-size:10px" class="helpline" value="{L_S_CODE_TIP}" /> </span>
		   </td>
		</tr>
		</table>
# 
#-----[ SAVE/CLOSE ALL FILES ]-------------------------------- 
# 
# EoM

